<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请单号" prop="GWDB001">
                <el-input v-model="form.GWDB001" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请日期">
                <el-date-picker
                        type="date"
                        v-model="form.GWDB004"
                        value-format="yyyy-MM-dd"
                        style="width: 100%" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请人员">
                <el-input v-model="form.GWDB007_NAME" readonly clearable>
                    <i class="el-icon-search el-input__icon" @click="openUser" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="申请部门">
                <el-input v-model="form.GWDB008_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="审核人">
                <el-input v-model="form.GWDB009_NAME" readonly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="审核时间">
                <el-date-picker
                        type="datetime"
                        v-model="form.GWDB010"
                        value-format="yyyy-MM-dd HH:mm:ss"
                        style="width: 100%" disabled>
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="生效日期" prop="GWDB005">
                <el-date-picker
                        type="date"
                        v-model="form.GWDB005"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">-->
            <!--<el-form-item label="截止日期">-->
                <!--<el-date-picker-->
                        <!--type="date"-->
                        <!--v-model="form.GWDB006"-->
                        <!--value-format="yyyy-MM-dd"-->
                        <!--style="width: 100%">-->
                <!--</el-date-picker>-->
            <!--</el-form-item>-->
        <!--</el-col>-->
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="对象类型" prop="GWDB003">
                <el-select v-model="form.GWDB003" placeholder="请选择对象类型" :disabled="gwdb003" clearable>
                    <el-option v-for="item in selectOptions.gwdc007Options"
                               :label="item.value" :value="item.code">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.GWDB011"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <div class="pos-re">
                <div class="pos-ab" style="margin-bottom: 10px;">
                    <el-button type="primary" size="small"
                               @click="addData" :disabled="detail">添加
                    </el-button>
                    <el-button type="primary" size="small"
                               @click="del" :disabled="detail">删除
                    </el-button>
                </div>
                <div class="table-responsive">
                    <table id="gwdc002_edit_table"
                           class="layui-table"
                           lay-size="sm"
                           lay-filter="gwdc002_edit_table">
                    </table>
                </div>
            </div>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right;margin-top: 10px;">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancle">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" :disabled="detail" @click="saveData">保存
            </el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwdc002_edit"], $.noop);
</script>